﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using MySql.Data.MySqlClient;

namespace PTTPOS_Solution.DAL
{
    public static class Place_DA
    {
        public static DataTable ListPlace = new DataTable();
        public static void GetListPlace()
        {
            MySqlCommand com = new MySqlCommand("select * from tblplaces", Connection_PTTPOS.GetConnection());
            com.Connection.Open();
            MySqlDataAdapter da = new MySqlDataAdapter(com);
            ListPlace.Clear();
            da.Fill(ListPlace);
            com.Connection.Close();

        }
    }
}
